package com.idcf.boathouse.product.controller;

import com.idcf.boathouse.product.models.ShopCartPost;
import io.swagger.annotations.ApiOperation;
import net.sf.jsqlparser.expression.StringValue;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 * @author guohq
 * @date 2021/3/28 11:09
 * @desc
 */
@RestController
public class TestHelloWord {
    @RequestMapping(value = "testhelloworld", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
    @ResponseBody
    @ApiOperation("testhelloworld")
    public String testhelloworld(@RequestBody Map testParm) throws IllegalStateException, IOException {
        String p = (String)testParm.get("testParm");
        System.out.println(p);
        return p;
    }
    }
